﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Goway.StackingUC.Entities.DataDefinition
{
    /// <summary>
    /// Stacking 错误码
    /// </summary>
    public enum WorkErrorCode
    {
        /// <summary>
        /// 未知
        /// </summary>
        [Description("未知")]
        UnKnown = 0,

        /// <summary>
        /// 成功完成
        /// </summary>
        [Description("成功完成")]
        Success,

        /// <summary>
        /// 连接失败
        /// </summary>
        [Description("连接失败")]
        ConnectFailed,

        /// <summary>
        /// 超时
        /// </summary>
        [Description("超时")]
        Expire,

        /// <summary>
        /// 读取失败
        /// </summary>
        [Description("读取失败")]
        ReadFailed,

        /// <summary>
        /// 写入失败
        /// </summary>
        [Description("写入失败")]
        WriteFailed,

        /// <summary>
        /// 非自动模式
        /// </summary>
        [Description("非自动模式")]
        IsNotAutoMode,

        /// <summary>
        /// 未请求扫码
        /// </summary>
        [Description("未请求扫码")]
        NotRequestScan,

        /// <summary>
        /// 忙碌状态
        /// </summary>
        [Description("忙碌状态")]
        BusyStatus,

        /// <summary>
        /// 协议异常
        /// </summary>
        [Description("协议异常")]
        ProtocolException,

        /// <summary>
        /// 读写异常
        /// </summary>
        [Description("读写异常")]
        RWException,

        /// <summary>
        /// 业务错误（如：放料地址故障等）
        /// </summary>
        BizFailed
    }
}
